<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">工作地点</label>
        <div class="col-xs-12 col-sm-4">
        <input type="text" class="form-control" name="addres" id="address" value="" placeholder="地址" data-toggle='addresspicker' data-input-id="address" data-lng-id="lng" data-lat-id="lat">
        </div>
    </div>
    <div class="form-group hide">
        <label for=""></label>
        <input type="text" class="form-control " name="lng" id="lng" placeholder="经度" value="">
    </div>
    <div class="form-group hide">
        <label for=""></label>
        <input type="text" class="form-control " name="lat" id="lat" placeholder="纬度" value="">
    </div>

    <div class="form-group">
        <label for="c-mobile" class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-mobile" data-rule="required" class="form-control" name="row[mobile]" type="text" value="" maxlength="11">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label for="c-gender" class="control-label col-xs-12 col-sm-2">{:__('Gender')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[gender]', ['男'=>__('男'), '女'=>__('女')], null)}
        </div>
    </div>
   
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Occupation')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-occupation" data-rule="required" class="form-control" name="row[occupation]" type="text">
        </div>
    </div>

    <div class="form-group">
        <label for="c-id_card" class="control-label col-xs-12 col-sm-2">{:__('Id_card')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-id_card" data-rule="" class="form-control" size="50" name="row[id_card]" type="text" value="" data-rule="required">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-id_card" class="btn btn-danger faupload" data-input-id="c-id_card" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-maxsize="5M"	data-maxcount="2" data-rule="required" data-preview-id="p-id_card"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-id_card"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-id_card"></ul>
        </div>
    </div>

    
    <div class="form-group">
        <label for="c-status" class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['0'=>__('审核中'), '1'=>__('审核通过'), '2'=>__('审核失败')], null)}
        </div>
    </div>
  
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
